﻿using DeSleeper.Client.Framework;
using DeSleeper.Library.PowerManagement;

namespace DeSleeper.Client.SystemConfig
{
	public class SetSleepStateCommand : AsyncCommand
	{
		public override string Text
		{
			get { return "Configuration of sleep timer"; }
		}

		protected override void OnExecute(object parameter)
		{
			var current = (PowerScheme) parameter;
			current.Update();
		}
	}
}
